import layoutHeaderAside from '@/layout/header-aside'

const meta = { auth: true }

export default {
  path: '/agent',
  name: 'Agent',
  meta,
  redirect: { name: 'demo-d2-crud-index' },
  component: layoutHeaderAside,
  children: (pre => [{
    path: `list`,
    name: `AgentList`,
    component: () => import('@/pages/agent/'),
    meta: { ...meta, title: '代理商列表' }
  }])('agent')
}
